package cn.thr.ymcc.constant;

/**
 * 系统常量
 */
public class Cos {
    /**
     * 课程视频推流相关常量
     */
    public  static  class  VideoStream{
        public static  final  String TOPIC_COURSE_VIDEO_PUSH_STREAM ="TOPIC_COURSE_VIDEO_PUSH_STREAM";
        public static  final  String TAGS_COURSE_VIDEO_PUSH_STREAM ="TAGS_COURSE_VIDEO_PUSH_STREAM";
    }

    /**
     * 推送相关的常量
     */
    public static class Message{
        public static  final  String TOPIC_MESSAGE ="TOPIC_MESSAGE";
        public static  final  String TAGS_MESSAGE_SMS ="TAGS_MESSAGE_SMS";
        public static  final  String TAGS_MESSAGE_EMAIL ="TAGS_MESSAGE_EMAIL";
        public static  final  String TAGS_MESSAGE_STATION ="TAGS_MESSAGE_STATION";

    }

    /**
     * 支付相关的常量
     */
    public static class pay{
        public static  final  String TX_PRODUCER_GROUP_PAY_ORDER ="TX_PRODUCER_GROUP_PAY_ORDER";
        public static  final  String TOPIC_TX_PAY_ORDER ="TOPIC_TX_PAY_ORDER";
        public static  final  String TAGS_TX_PAY_ORDER ="TAGS_TX_PAY_ORDER";

        //支付后的异步通知，支付成功后的处理
        public static  final  String TOPIC_PAY_SUCCESS ="TOPIC_PAY_SUCCESS";
        public static  final  String TAGS_PAY_SUCCESS ="TAGS_PAY_SUCCESS";

        //支付超时处理
        public static  final  String TOPIC_PAY_TIMEOUT ="TOPIC_PAY_TIMEOUT";
        public static  final  String TAGS_PAY_TIMEOUT ="TAGS_PAY_TIMEOUT";

    }

    public static  class Kill{
        //秒杀课程的库存预热key前缀
        public static final String KILL_COURSE_STORE = "KILL_COURSE_STORE::";
        //课程预热的hash 结构的大key
        public static final String KEY_KILL_COURSE = "KEY_KILL_COURSE";
        //用户抢购某个课程的记录前缀
        public static final String KEY_KILL_HISTORY = "KEY_KILL_HISTORY::";


        //下单超时处理的延迟消息 topic
        public static final String TOPIC_KILL_ORDER_TIMEOUT = "TOPIC_KILL_ORDER_TIMEOUT";

        public static final String TAGS_KILL_ORDER_TIMEOUT = "TAGS_KILL_ORDER_TIMEOUT";
    }

}
